/*
 * Copyright(C) 2019 FUYUN DATA SERVICES CO.,LTD. - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 * 该源代码版权归属福韵数据服务有限公司所有
 * 未经授权，任何人不得复制、泄露、转载、使用，否则将视为侵权
 *
 */

import { menuImage } from "../assets";

export interface IMenu {
  authority?: string[] | string; // 权限控制
  children?: IMenu[]; // 子菜单
  name: string; // 名称
  path: string; // 路径
  icon?: any; // 图标
}

const menuData: IMenu[] = [
  {
    name: "产品分类管理",
    path: "/product",
    icon: menuImage.menu_message,
    children: [
      {
        name: "产品类别管理",
        path: "/productAdd"
      },
      {
        name: "产品类别修改",
        path: "/productEdit"
      },
      {
        name: "产品类别列表",
        path: "/productList"
      },
      {
        name: "产品类别查看",
        path: "/productDetail"
      }
    ]
  },
  {
    name: "商品管理",
    path: "/goods",
    icon: menuImage.menu_message,
    children: [
      {
        name: "商品添加",
        path: "/goodsAdd"
      },
      {
        name: "商品修改",
        path: "/goodsEdit"
      },
      {
        name: "商品查询",
        path: "/goodsList"
      },
      {
        name: "商品查看",
        path: "/goodsDetail"
      },
      {
        name: "防伪码配对",
        path: "/goodsPair"
      }
    ]
  },
  {
    name: "防伪码管理",
    path: "/security",
    icon: menuImage.menu_message,
    children: [
      // {
      //     name: "防伪码生成",
      //     path: "/securityAdd"
      // },
      {
        name: "防伪码删除",
        path: "/securityDel"
      }
      // {
      //     name: "防伪码批量下发",
      //     path: "/securitySend"
      // }
    ]
  },
  {
    name: "查询统计",
    path: "/searchLog",
    icon: menuImage.menu_message,
    children: [
      // {
      //     name: "串货统计",
      //     path: "/searchLogUnion"
      // },
      {
        name: "防伪查询统计",
        path: "/searchLogList"
      },
      {
        name: "防伪查询统计删除",
        path: "/searchLogHandle"
      }
    ]
  },
  {
    name: "系统管理",
    path: "/systemManage",
    icon: menuImage.menu_message,
    children: [
      {
        name: "用户管理",
        path: "/userList"
      },
      {
        name: "权限管理",
        path: "/roleList"
      }
    ]
  }
];

export default menuData;
